import request from '../util/http.js'

/**
 * 请求地址
 * getall获取全部
 * putbyid 填写
 */
const path = [
	{
		'get': 'ise7sInspect/feedback7s',
		'post': 'ise7sInspect/feedback7s',
	},
	{
		'get': 'iseTeachInspect/feedbackTeach',
		'post': 'iseTeachInspect/feedbackTeach',
	},
	{
		'get': 'iseStudyInspect/feedbackStudy',
		'post': 'iseStudyInspect/feedbackStudy',
	},
	{
		'get': 'iseDormInspect/feedbackDorm',
		'post': 'iseDormInspect/feedbackDorm',
	}
]



export async function reqMessage(type,option,info){
	const url = path[+type][option]
	// 获取, 提交 表单回填,表单修改
	const meth = option;
	return await request(url,info,meth);
}